#include "SatelliteContent.h"
#include "BDSatelliteContent.h"
#include "GPSSatelliteContent.h"
#include "GalileoSatelliteContent.h"

class SatelliteContentFactory {
public:
    static SatelliteContent* createSatelliteContent(const QString &type, QWidget *parent = nullptr) {
        if (type == "BD") {
            return new BDSatelliteContent(parent);
        } else if (type == "GPS") {
            return new GPSSatelliteContent(parent);
        } else if (type == "Galileo") {
            return new GalileoSatelliteContent(parent);
        }
        return nullptr;
    }
};